import { Example, ExampleCode } from '@/components/Example';

<Example>
<ExampleCode>
```jsx
import {
  InAppMessagingProvider,
  useInAppMessaging
} from '@aws-amplify/ui-react-native';
import { Home } from './src/Home';

const MyInAppMessageDisplay = () => {
  const { inAppMessage } = useInAppMessaging();

  // ...do something with inAppMessage
};

const App = () => {
  return (
    <InAppMessagingProvider>
      <MyInAppMessageDisplay />
      <Home />
    </InAppMessagingProvider>
  );
};
```
</ExampleCode>
</Example>
